import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
import javax.swing.WindowConstants;

public class Status extends Thread {
	/**
	 * @uml.property  name="current"
	 * @uml.associationEnd  multiplicity="(1 1)"
	 */
	JProgressBar current = new JProgressBar(0, 2000);
	/**
	 * @uml.property  name="num"
	 */
	int num = 0;

	@Override
	public void run() {
		JFrame f = new JFrame();
		f.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);

		JPanel pane = new JPanel();
		current.setValue(0);
		current.setStringPainted(true);
		pane.add(current);
		f.setContentPane(pane);

		f.setLocation(700, 500); // Wo im Bild
		f.pack();
		f.setVisible(true);

		iterate();

		f.setVisible(false);
	}

	public void iterate() {
		while (num < 1000) {
			current.setValue(num);
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
			}
			num += 95;
		}
	}
}
